using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.IO;
using PSE.Hosting.Management.Common;
using System.Threading;
using System.ComponentModel;
using PSE.Hosting.ServiceHoster.Logging;
using PSE.Framework.Configuration;
using PSE.Framework.Process;

namespace PSE.Hosting.Management.Console
{
    class Program : BaseProgram
    {
        static Program()
        {
            Initialize(PSE.Framework.Configuration.Components.SystemComponents.System, PSE.Framework.Configuration.Components.SystemComponents.HosterManager);
        }

        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Messages.NoArgsSyntaxError();
                return;
            }

            ICommand command = CommandFactory.Instance(args[0].ToLower());
            if (command != null)
            {
                command.Execute(args);
            }
        }
    }
}
